Optimal. Leaf size=164 \[ \frac {d^{5/2} \text {ArcTan}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{8 a^3 f}-\frac {d^{5/2} \tanh ^{-1}\left (\frac {\sqrt {d}+\sqrt {d} \tan (e+f x)}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{2 \sqrt {2} a^3 f}+\frac {5 d^2 \sqrt {d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac {d^2 \sqrt {d \tan (e+f x)}}{4 a f (a+a \tan (e+f x))^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.36, antiderivative size = 164, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {3646, 3730,
3735, 3613, 214, 3715, 65, 211} \begin {gather*} \frac {d^{5/2} \text {ArcTan}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{8 a^3 f}-\frac {d^{5/2} \tanh ^{-1}\left (\frac {\sqrt {d} \tan (e+f x)+\sqrt {d}}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{2 \sqrt {2} a^3 f}+\frac {5 d^2 \sqrt {d \tan (e+f x)}}{8 a^3 f (\tan (e+f x)+1)}-\frac {d^2 \sqrt {d \tan (e+f x)}}{4 a f (a \tan (e+f x)+a)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 211
Rule 214
Rule 3613
Rule 3646
Rule 3715
Rule 3730
Rule 3735
Rubi steps
\begin {align*} \int \frac {(d \tan (e+f x))^{5/2}}{(a+a \tan (e+f x))^3} \, dx &=-\frac {d^2 \sqrt {d \tan (e+f x)}}{4 a f (a+a \tan (e+f x))^2}+\frac {\int \frac {\frac {a^2 d^3}{2}-2 a^2 d^3 \tan (e+f x)+\frac {5}{2} a^2 d^3 \tan ^2(e+f x)}{\sqrt {d \tan (e+f x)} (a+a \tan (e+f x))^2} \, dx}{4 a^3}\\ &=\frac {5 d^2 \sqrt {d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac {d^2 \sqrt {d \tan (e+f x)}}{4 a f (a+a \tan (e+f x))^2}+\frac {\int \frac {-\frac {3}{2} a^4 d^4+\frac {5}{2} a^4 d^4 \tan ^2(e+f x)}{\sqrt {d \tan (e+f x)} (a+a \tan (e+f x))} \, dx}{8 a^6 d}\\ &=\frac {5 d^2 \sqrt {d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac {d^2 \sqrt {d \tan (e+f x)}}{4 a f (a+a \tan (e+f x))^2}+\frac {\int \frac {-4 a^5 d^4+4 a^5 d^4 \tan (e+f x)}{\sqrt {d \tan (e+f x)}} \, dx}{16 a^8 d}+\frac {d^3 \int \frac {1+\tan ^2(e+f x)}{\sqrt {d \tan (e+f x)} (a+a \tan (e+f x))} \, dx}{16 a^2}\\ &=\frac {5 d^2 \sqrt {d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac {d^2 \sqrt {d \tan (e+f x)}}{4 a f (a+a \tan (e+f x))^2}+\frac {d^3 \text {Subst}\left (\int \frac {1}{\sqrt {d x} (a+a x)} \, dx,x,\tan (e+f x)\right )}{16 a^2 f}-\frac {\left (2 a^2 d^7\right ) \text {Subst}\left (\int \frac {1}{-32 a^{10} d^8+d x^2} \, dx,x,\frac {-4 a^5 d^4-4 a^5 d^4 \tan (e+f x)}{\sqrt {d \tan (e+f x)}}\right )}{f}\\ &=-\frac {d^{5/2} \tanh ^{-1}\left (\frac {\sqrt {d}+\sqrt {d} \tan (e+f x)}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{2 \sqrt {2} a^3 f}+\frac {5 d^2 \sqrt {d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac {d^2 \sqrt {d \tan (e+f x)}}{4 a f (a+a \tan (e+f x))^2}+\frac {d^2 \text {Subst}\left (\int \frac {1}{a+\frac {a x^2}{d}} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{8 a^2 f}\\ &=\frac {d^{5/2} \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{8 a^3 f}-\frac {d^{5/2} \tanh ^{-1}\left (\frac {\sqrt {d}+\sqrt {d} \tan (e+f x)}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{2 \sqrt {2} a^3 f}+\frac {5 d^2 \sqrt {d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac {d^2 \sqrt {d \tan (e+f x)}}{4 a f (a+a \tan (e+f x))^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.25, size = 192, normalized size = 1.17 \begin {gather*} \frac {\sec (e+f x) (\cos (e+f x)+\sin (e+f x))^3 \left (\frac {\csc ^4(e+f x) (3+3 \cos (2 (e+f x))+5 \sin (2 (e+f x)))}{(1+\cot (e+f x))^2}+\frac {2 \csc (e+f x) \left (\text {ArcTan}\left (\sqrt {\tan (e+f x)}\right )+\sqrt {2} \left (\log \left (-1+\sqrt {2} \sqrt {\tan (e+f x)}-\tan (e+f x)\right )-\log \left (1+\sqrt {2} \sqrt {\tan (e+f x)}+\tan (e+f x)\right )\right )\right ) \sec (e+f x)}{\tan ^{\frac {3}{2}}(e+f x)}\right ) (d \tan (e+f x))^{5/2}}{16 a^3 f (1+\tan (e+f x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(348\) vs.
\(2(135)=270\).
time = 0.18, size = 349, normalized size = 2.13
method | result | size |
derivativedivides | \(\frac {2 d^{4} \left (\frac {\frac {\frac {5 \left (d \tan \left (f x +e \right )\right )^{\frac {3}{2}}}{4}+\frac {3 d \sqrt {d \tan \left (f x +e \right )}}{4}}{\left (d \tan \left (f x +e \right )+d \right )^{2}}+\frac {\arctan \left (\frac {\sqrt {d \tan \left (f x +e \right )}}{\sqrt {d}}\right )}{4 \sqrt {d}}}{4 d}+\frac {-\frac {\left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 d}+\frac {\sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 \left (d^{2}\right )^{\frac {1}{4}}}}{4 d}\right )}{f \,a^{3}}\) | \(349\) |
default | \(\frac {2 d^{4} \left (\frac {\frac {\frac {5 \left (d \tan \left (f x +e \right )\right )^{\frac {3}{2}}}{4}+\frac {3 d \sqrt {d \tan \left (f x +e \right )}}{4}}{\left (d \tan \left (f x +e \right )+d \right )^{2}}+\frac {\arctan \left (\frac {\sqrt {d \tan \left (f x +e \right )}}{\sqrt {d}}\right )}{4 \sqrt {d}}}{4 d}+\frac {-\frac {\left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 d}+\frac {\sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 \left (d^{2}\right )^{\frac {1}{4}}}}{4 d}\right )}{f \,a^{3}}\) | \(349\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.54, size = 193, normalized size = 1.18 \begin {gather*} -\frac {\frac {d^{4} {\left (\frac {\sqrt {2} \log \left (d \tan \left (f x + e\right ) + \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {d} + d\right )}{\sqrt {d}} - \frac {\sqrt {2} \log \left (d \tan \left (f x + e\right ) - \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {d} + d\right )}{\sqrt {d}}\right )}}{a^{3}} - \frac {d^{\frac {7}{2}} \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )}}{\sqrt {d}}\right )}{a^{3}} - \frac {5 \, \left (d \tan \left (f x + e\right )\right )^{\frac {3}{2}} d^{4} + 3 \, \sqrt {d \tan \left (f x + e\right )} d^{5}}{a^{3} d^{2} \tan \left (f x + e\right )^{2} + 2 \, a^{3} d^{2} \tan \left (f x + e\right ) + a^{3} d^{2}}}{8 \, d f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.09, size = 470, normalized size = 2.87 \begin {gather*} \left [\frac {4 \, {\left (\sqrt {2} d^{2} \tan \left (f x + e\right )^{2} + 2 \, \sqrt {2} d^{2} \tan \left (f x + e\right ) + \sqrt {2} d^{2}\right )} \sqrt {-d} \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )} {\left (\sqrt {2} \tan \left (f x + e\right ) + \sqrt {2}\right )} \sqrt {-d}}{2 \, d \tan \left (f x + e\right )}\right ) + {\left (d^{2} \tan \left (f x + e\right )^{2} + 2 \, d^{2} \tan \left (f x + e\right ) + d^{2}\right )} \sqrt {-d} \log \left (\frac {d \tan \left (f x + e\right ) + 2 \, \sqrt {d \tan \left (f x + e\right )} \sqrt {-d} - d}{\tan \left (f x + e\right ) + 1}\right ) + 2 \, {\left (5 \, d^{2} \tan \left (f x + e\right ) + 3 \, d^{2}\right )} \sqrt {d \tan \left (f x + e\right )}}{16 \, {\left (a^{3} f \tan \left (f x + e\right )^{2} + 2 \, a^{3} f \tan \left (f x + e\right ) + a^{3} f\right )}}, \frac {{\left (d^{2} \tan \left (f x + e\right )^{2} + 2 \, d^{2} \tan \left (f x + e\right ) + d^{2}\right )} \sqrt {d} \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )}}{\sqrt {d}}\right ) + {\left (\sqrt {2} d^{2} \tan \left (f x + e\right )^{2} + 2 \, \sqrt {2} d^{2} \tan \left (f x + e\right ) + \sqrt {2} d^{2}\right )} \sqrt {d} \log \left (\frac {d \tan \left (f x + e\right )^{2} - 2 \, \sqrt {d \tan \left (f x + e\right )} {\left (\sqrt {2} \tan \left (f x + e\right ) + \sqrt {2}\right )} \sqrt {d} + 4 \, d \tan \left (f x + e\right ) + d}{\tan \left (f x + e\right )^{2} + 1}\right ) + {\left (5 \, d^{2} \tan \left (f x + e\right ) + 3 \, d^{2}\right )} \sqrt {d \tan \left (f x + e\right )}}{8 \, {\left (a^{3} f \tan \left (f x + e\right )^{2} + 2 \, a^{3} f \tan \left (f x + e\right ) + a^{3} f\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {\left (d \tan {\left (e + f x \right )}\right )^{\frac {5}{2}}}{\tan ^{3}{\left (e + f x \right )} + 3 \tan ^{2}{\left (e + f x \right )} + 3 \tan {\left (e + f x \right )} + 1}\, dx}{a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 326 vs.
\(2 (142) = 284\).
time = 0.79, size = 326, normalized size = 1.99 \begin {gather*} -\frac {1}{16} \, d^{2} {\left (\frac {2 \, \sqrt {2} {\left (d \sqrt {{\left | d \right |}} - {\left | d \right |}^{\frac {3}{2}}\right )} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {{\left | d \right |}} + 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {{\left | d \right |}}}\right )}{a^{3} d f} + \frac {2 \, \sqrt {2} {\left (d \sqrt {{\left | d \right |}} - {\left | d \right |}^{\frac {3}{2}}\right )} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {{\left | d \right |}} - 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {{\left | d \right |}}}\right )}{a^{3} d f} - \frac {2 \, \sqrt {d} \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )}}{\sqrt {d}}\right )}{a^{3} f} + \frac {\sqrt {2} {\left (d \sqrt {{\left | d \right |}} + {\left | d \right |}^{\frac {3}{2}}\right )} \log \left (d \tan \left (f x + e\right ) + \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {{\left | d \right |}} + {\left | d \right |}\right )}{a^{3} d f} - \frac {\sqrt {2} {\left (d \sqrt {{\left | d \right |}} + {\left | d \right |}^{\frac {3}{2}}\right )} \log \left (d \tan \left (f x + e\right ) - \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {{\left | d \right |}} + {\left | d \right |}\right )}{a^{3} d f} - \frac {2 \, {\left (5 \, \sqrt {d \tan \left (f x + e\right )} d^{2} \tan \left (f x + e\right ) + 3 \, \sqrt {d \tan \left (f x + e\right )} d^{2}\right )}}{{\left (d \tan \left (f x + e\right ) + d\right )}^{2} a^{3} f}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.80, size = 153, normalized size = 0.93 \begin {gather*} \frac {\frac {3\,d^4\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{8}+\frac {5\,d^3\,{\left (d\,\mathrm {tan}\left (e+f\,x\right )\right )}^{3/2}}{8}}{f\,a^3\,d^2\,{\mathrm {tan}\left (e+f\,x\right )}^2+2\,f\,a^3\,d^2\,\mathrm {tan}\left (e+f\,x\right )+f\,a^3\,d^2}+\frac {d^{5/2}\,\mathrm {atan}\left (\frac {\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{\sqrt {d}}\right )}{8\,a^3\,f}-\frac {\sqrt {2}\,d^{5/2}\,\mathrm {atanh}\left (\frac {9\,\sqrt {2}\,d^{33/2}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{32\,\left (\frac {9\,d^{17}\,\mathrm {tan}\left (e+f\,x\right )}{32}+\frac {9\,d^{17}}{32}\right )}\right )}{4\,a^3\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________